from fastapi import Query


#页码公共函数
def pages(page:int = Query(...,gt=0),limit:int = Query(...,gt=0,le=50)):
    return {'page':page,'limit':limit}